﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="detailViewGRN.aspx.cs"
    Inherits="MixScriptWeb.Accounting.detailViewGRN" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Detail</title>
    <link href="../../Styles/AccReportStyle.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.printArea.js" type="text/javascript"></script>
    <script src="../Scripts/table2CSV.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#btnPrint').click(function () {
                $("div.printArea").printArea();
            });
            $('#btnExport').click(function () {
                var $table = $("#table-ui")
                alert($table);
                var csv = $table.table2CSV({ delivery: 'value' });
                window.location.href = 'data:text/csv;charset=UTF-8,'
                        + encodeURIComponent(csv);
            });
        });
        
    </script>
</head>
<body>
    <form id="form1" runat="server" style="background-color: White;">
    <div class="printTools">
        <table width="100%">
            <tr>
                <td style="width: 50%">
                </td>
                <td>
                </td>
                <td align="right" style="width: 30px">
                    <asp:Button runat="server" Text="Refresh" ID="btnRefresh" />
                </td>
                <td align="right" style="width: 30px">
                    <input type="button" value="Export" id="btnExport" class="btnExport" />
                </td>
                <td align="right" style="width: 30px">
                    <input type="button" value="Print" id="btnPrint" class="btnPrint" />
                </td>
            </tr>
        </table>
    </div>
    <div class="printArea">
        <table cellpadding="0" cellspacing="0" style="width: 100%;" border="0" class="table-ui"
            id="table-ui">
            <tr>
                <td colspan="4" align="left">
                    <asp:Label ID="Label1" runat="server" Text="PT. JIDECO INDONESIA " Font-Size="Smaller"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="4" align="center">
                    <h2>
                        <asp:Label ID="lblTitle" runat="server" Text="Sales Journal Voucher" Font-Bold="True"></asp:Label>
                    </h2>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                </td>
            </tr>
            <tr>
                <td style="width: 50%" align="left">
                </td>
                <td style="width: 23%" align="left">
                    <asp:label ID="lblsjnot" runat="server"></asp:label>
                </td>
                <td style="width: 6%" align="left">
                    :
                </td>
                <td style="width: 23%" align="left">
                    <asp:Label ID="lblSJ" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="width: 50%" align="left">
                </td>
                <td>
                    <asp:Label ID="lblgrnnot" runat="server" />
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:Label ID="lblGRNNo" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="width: 50%" align="left">
                </td>
                <td>
                    Date
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:Label ID="lblDate" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Label ID="lblsuppliert" runat="server" />
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:Label ID="lblSupplier" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Label ID="lblponot" runat="server" />
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:Label ID="lblPoNo" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    Amount
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:Label ID="lblAmount" runat="server" />
                </td>
            </tr>
            <tr>
                <td colspan="4">
                </td>
            </tr>
        </table>
        &nbsp;
        <asp:Panel ID="pnl" runat="server" ScrollBars="Auto" Width="100%" Height="300px">
            <asp:GridView ID="gvList" runat="server" Width="100%" AutoGenerateColumns="False"
                OnPreRender="GridView_PreRender">
                <EmptyDataTemplate>
                    No Detail To Priview
                </EmptyDataTemplate>
                <AlternatingRowStyle CssClass="alt" />
                <HeaderStyle Height="40px" HorizontalAlign="Justify" />
                <Columns>
                    <asp:BoundField DataField="desc" ItemStyle-Width="45%" HeaderText="DESCRIPTION" DataFormatString="{0:##,##.00}" />
                    <asp:BoundField DataField="acctnum" HeaderText="Acc No" ItemStyle-Width="10%" />
                    <asp:BoundField DataField="acctnum" HeaderText="CC" ItemStyle-Width="10%" />
                    <asp:BoundField DataField="subsidiary" HeaderText="SUBSIDIARY" ItemStyle-Width="15%" />
                    <asp:BoundField DataField="Debit" HeaderText="DEBIT" ItemStyle-HorizontalAlign="Right"
                        DataFormatString="{0:##,##.00}" ItemStyle-Width="15%" />
                    <asp:BoundField DataField="Kredit" HeaderText="CREDIT" ItemStyle-HorizontalAlign="Right"
                        DataFormatString="{0:##,##.00}" ItemStyle-Width="15%" />
                </Columns>
                <EditRowStyle BorderColor="Silver" BorderStyle="Solid" />
                <FooterStyle CssClass="ft" />
                <PagerStyle BorderStyle="None" BorderWidth="0px" HorizontalAlign="Center" />
            </asp:GridView>
        </asp:Panel>
        &nbsp;
        <table>
            <tr>
                <td style="width: 50%">
                </td>
                <td align="center">
                    Approved By
                    <br />
                    (Accounting Dept)
                </td>
                <td style="width: 5%">
                </td>
                <td align="center">
                    Prepared By
                </td>
            </tr>
            <tr>
                <td style="width: 50%">
                </td>
                <td align="center">
                </td>
                <td style="width: 5%">
                </td>
                <td align="center">
                </td>
            </tr>
            <tr>
                <td style="width: 50%">
                </td>
                <td align="center">
                </td>
                <td style="width: 5%">
                </td>
                <td align="center">
                </td>
            </tr>
            <tr>
                <td style="width: 50%">
                </td>
                <td align="center">
                </td>
                <td style="width: 5%">
                </td>
                <td align="center">
                </td>
            </tr>
            <tr>
                <td style="width: 50%">
                </td>
                <td align="center">
                    ___________________<br />
                    Name-Signature-Date
                </td>
                <td style="width: 5%">
                </td>
                <td align="center">
                    ___________________<br />
                    Name-Signature-Date<br />
                    No Form-Acc 001
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
